﻿using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TodoMVC.Models.DBModels;

namespace TodoMVC.DBServices
{
    /// <summary>
    /// Todo MVC 数据库上下文
    /// </summary>
    public class TodoMVCContext : DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="options"></param>
        public TodoMVCContext(DbContextOptions<TodoMVCContext> options) : base(options)
        {
            
        }

        /// <summary>
        /// 代办事项
        /// </summary>
        public DbSet<TodoItem> TodoItems { get; set; }

    }
}
